
package run.siyuan.model;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @author WnJie
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
public class SimpleEntity extends PoJo {

    @TableId
    // @ApiModelProperty(value = "主键Id")
    @JsonSerialize(using = IdSerializer.class)
    private Long id;
    /** 创建时间 */
    @JsonIgnore
    // @ApiModelProperty(hidden = true)
    @TableField(fill = FieldFill.INSERT)
    private Long createTime;
    /** 修改时间 */
    @JsonIgnore
    // @ApiModelProperty(hidden = true)
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Long updateTime;
}
